<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/common.jsp"%>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title>后台管理系统</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN THEME GLOBAL STYLES -->
        <link href="${basePath}/res/assets/global/css/components-rounded.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <link href="${basePath}/res/assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link href="${basePath}/res/assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/layouts/layout2/css/themes/blue.min.css" rel="stylesheet" type="text/css" id="style_color" />
        <link href="${basePath}/res/assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME LAYOUT STYLES -->
        <link rel="shortcut icon" href="favicon.ico" /> </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid">
        
        <%@ include file="/manage/page-header.jsp" %>
        
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            
            <%@include file="/manage/page-sidebar.jsp" %>
            
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    
                    <%@include file="/manage/theme-panel.jsp" %>
                    <%@include file="/manage/page-title.jsp" %>
                    
							<div class="row">
                    <!-- END PAGE HEADER-->
					<form  role="form" method="post" action="${basePath}/message/" id="searchForm">

							<div class="col-md-1">
								<div class="input-group" >
								<label >开始日期</label>
								</div>
							</div>
							<div class="col-md-2">
								<div class="input-group">
									<input class="form-control input-sm date-picker" style="width: 160px"
										type="text" value="${startTime }" name="startTime">
                                 </div>
							</div>
							<div class="col-md-1">
								<div class="input-group ">
								<label  >截止日期</label>
                                 </div>
							</div>
							<div class="col-md-2">
								<div class="input-group ">
									<input class="form-control input-sm date-picker" style="width: 160px"
										type="text" value="${endTime }" name="endTime">
                                 </div>
							</div>
							<div class="col-md-4">
								<div class="input-group ">
									<input type="text" class="form-control input-sm" name="searchContent" value="${searchContent }" placeholder="输入标题/内容/发布人检索">
									<span class="input-group-btn">
										<button class="btn blue input-sm" type="submit">
											<i class="fa fa-search "></i>搜索
										</button>
									</span>
								</div>
								<!-- /input-group -->
							</div>
				</form>
                    
						</div>
                    
                     <div class="row">
                        <div class="col-md-12"> &nbsp; </div>
                     </div>
                     
                     
                    <!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box green">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-cogs"></i>查询列表
							</div>
							<div class="actions">
								<button type="button" class="btn btn-danger"
									onclick="doAdd();">新增</button>
							</div>
						</div>
						<div class="portlet-body flip-scroll">
							<table class="table table-bordered table-striped table-condensed table-hover ">
								
								<thead class="flip-content">
									<tr>
										<th>标题</th>
										<th>发布人</th>
										<th>发布时间</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${page.list }" var="obj">
										<tr>
											<td>${obj.title }</td>
											<td>${obj.releaseName }</td>
											<td><fmt:formatDate value="${obj.releaseTime }" pattern="YYYY-MM-dd"></fmt:formatDate></td>
											<td>
												<dic:getNodeName path="TOP->MESSAGE_STATUS->${obj.status }"></dic:getNodeName>
											</td>
											<td>
												<a href="${basePath }/message/details?id=${obj.id }">详细 </a>
												<a href="${basePath }/message/edit/disp?id=${obj.id }">编辑</a>
											</td>
										</tr>
									</c:forEach>
	
								</tbody>
							</table>
	
							<div class="row">
								<div class="col-md-12" align="center">
									<page_bootstrap_ui:pager pageNumber="${page.pageNumber }"
										totalPage="${page.totalPage }" pageSize="${page.pageSize }"
										totalRow="${page.totalRow }"></page_bootstrap_ui:pager>
								</div>
							</div>
	
						</div>
					</div>
					<!-- END SAMPLE TABLE PORTLET-->


			</div>
                <!-- END CONTENT BODY -->
		</div>
            <!-- END CONTENT -->
            
            
        </div>
        <!-- END CONTAINER -->
        
        <%@ include file="/manage/page-quick-sidebar-toggler.jsp" %>
        
        <%@ include file="/manage/page-footer.jsp" %>
        
        <!--[if lt IE 9]>
<script src="${basePath}/res/assets/global/plugins/respond.min.js"></script>
<script src="${basePath}/res/assets/global/plugins/excanvas.min.js"></script> 
<![endif]-->
        <!-- BEGIN CORE PLUGINS -->
        <script src="${basePath}/res/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js" type="text/javascript"></script>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script src="${basePath}/res/assets/global/scripts/app.js" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="${basePath}/res/assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/js/page.js" type="text/javascript"></script>
        <!-- END THEME LAYOUT SCRIPTS -->
        
        <script type="text/javascript">
        
        	bootbox.setLocale("zh_CN");
        	
			function doAdd(){
				
				window.location.href='${basePath}/message/add/disp';
			}
			
			function doSave(){
		   	 	bootbox.confirm("确认保存?", function(result) {
		            if(result){
		            	$('#purcgaseAdd').submit();
		            }
		         }); 
		 		
		 	}
        </script>
        
    </body>

</html>